package com.gin.pixiv.response.ranking

import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonFormat
import java.time.LocalDateTime

/**
 * 插画系列数据
 */
class IllustSeries {
    @set:JsonAlias("illust_series_caption")
    var illustSeriesCaption: String? = null

    @set:JsonAlias("illust_series_content_count")
    var illustSeriesContentCount: Int? = null

    @set:JsonAlias("illust_series_content_illust_id")
    var illustSeriesContentIllustId: Long? = null

    @set:JsonAlias("illust_series_content_order")
    var illustSeriesContentOrder: Int? = null

    @set:JsonAlias("illust_series_create_datetime")
    @set:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    var illustSeriesCreateDatetime: LocalDateTime? = null

    @set:JsonAlias("illust_series_id")
    var illustSeriesId: Long? = null

    @set:JsonAlias("illust_series_title")
    var illustSeriesTitle: String? = null

    @set:JsonAlias("illust_series_user_id")
    var illustSeriesUserId: Long? = null

    @set:JsonAlias("page_url")
    var pageUrl: String? = null
}